home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Mac Game Programming Gurus
/
TricksOfTheMacGameProgrammingGurus.iso
/
More Source
/
C⁄C++
/
Chess++ 3.0.1
/
source
/
CChessPieces ƒ
/
CPawn.h
< prev
next >
Wrap
Text File
|
1993-04-25
|
553b
|
23 lines
/****
* CPawn.h
*
* Class representing the pawn.
*
* Copyright © 1993 Steven J. Bushell. All rights reserved.
*
****/
#define _H_CPawn /* Include this file only once */
#include "CObject.h"
class CChessBoard;
class CPawn : public CChessPiece {
public:
void IPawn(Boolean);
void Draw(short rank, short file);
CIconHandle GetCicnHandle(void);
short BoardLocationValue(CChessBoard *aBoard, short rank, short file);
Boolean IsValidMove(CChessBoard *aBoard, short newRank, short newFile);
void RegisterMove(short rank, short file);
};